<%--
  Created by IntelliJ IDEA.
  User: xiyue
  Date: 2021/4/4
  Time: 13:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %><%--启动EL表达式解析--%>
<%
    request.setCharacterEncoding("UTF-8");
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()
        +request.getContextPath();
    String message_input_url = basePath+"/pages/message/show";
%>
<base href="<%=basePath%>">
<form action="<%=message_input_url%>" method="post">
消息内容：<input type="text" name="msg" value="www.nieyi.com">
    <%--传递CSRF-Token信息,参数名称_csrf,参数内容为随机生成的Token数据--%>
    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}">
    <input type="submit" value="发送"><input type="reset" value="重置">
</form>